package com.waiting.list;

import java.util.LinkedList;
import java.util.List;

/**
 * @Description LinkedList 学习
 * @Author bjweitingting
 * @Date 2019/2/12
 **/
public class LinkedListTest {
    public static void main(String[] args) {
        List<Integer> test=new LinkedList<>();
        test.add(0);
        test.add(1);
        test.add(2);
        System.out.println(test.get(0));
        System.out.println(test.get(1));

        LinkedList<Integer> testTwo=new LinkedList<>();
        testTwo.push(0);
        testTwo.push(1);
        testTwo.push(2);
        System.out.println(testTwo.get(0));
        System.out.println(testTwo.get(1));
    }
}
